package com.jt.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SysResult implements Serializable{
    private Integer status;
    private String msg;
    private Object data;

    public static SysResult fail(){
        return new SysResult(201,"???",null);
    }
    public static SysResult success(){
        return new SysResult(200,"OK",null);
    }
    public static SysResult success(Object data){
        return new SysResult(200,"OK",data);
    }
    public static SysResult success(String msg,Object data){
        return new SysResult(200,msg,data);
    }



}
